home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11.lha / libX11 / unix.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-22  |  2.1 KB  |  86 lines

  1. /* Copyright (c) 1996 by Terje Pedersen.  All Rights Reserved   */
  2. /*                                                              */
  3. /* By using this code you will agree to these terms:            */
  4. /*                                                              */
  5. /* 1. You may not use this code for profit in any way or form   */
  6. /*    unless an agreement with the author has been reached.     */
  7. /*                                                              */
  8. /* 2. The author is not responsible for any damages caused by   */
  9. /*    the use of this code.                                     */
  10. /*                                                              */
  11. /* 3. All modifications are to be released to the public.       */
  12. /*                                                              */
  13. /* Thats it! Have fun!                                          */
  14. /* TP                                                           */
  15. /*                                                              */
  16.  
  17. /***
  18.    NAME
  19.      unix
  20.    PURPOSE
  21.      
  22.    NOTES
  23.      
  24.    HISTORY
  25.      Terje Pedersen - Aug 13, 1995: Created.
  26. ***/
  27.  
  28. #include <stdio.h>
  29. #include <pwd.h>
  30. #include <unistd.h>
  31.  
  32. uid_t geteuid(void)
  33. {/*                 File 'e_delete.o'*/
  34. #ifdef DEBUGXEMUL
  35.   printf("geteuid\n");
  36. #endif
  37.   return(0);
  38. }
  39.  
  40. char *getlogin(void)
  41. {
  42.   return 0;
  43. }
  44.  
  45. int getpid(void)
  46. {/*                  File 'f_util.o'*/
  47. #ifdef DEBUGXEMUL
  48.   printf("getpid\n");
  49. #endif
  50.   return(0);
  51. }
  52.  
  53. struct passwd *getpwuid (uid_t id){/*                File 'fileName.o'*/
  54. #ifdef DEBUGXEMUL
  55.   printf("getpwuid\n");
  56. #endif
  57.   return(0);
  58. }
  59.  
  60. struct passwd *getpwnam( char *name ){
  61.   return NULL;
  62. }
  63.  
  64. FILE *popen(const char *command, const char *type)
  65. {/*                   File 'eps.o' */
  66. #if (DEBUGXEMUL_ENTRY) || (DEBUGXEMUL_WARNING)
  67.   printf("WARNING: popen\n");
  68. #endif
  69.   return(0);
  70. }
  71.  
  72. int pclose(FILE *stream)
  73. {/*                  File 'eps.o' */
  74. #if (DEBUGXEMUL_ENTRY) || (DEBUGXEMUL_WARNING)
  75.   printf("WARNING: pclose\n");
  76. #endif
  77.   return(0);
  78. }
  79.  
  80. uid_t getuid(void){/*                  File 'fileName.o'*/
  81. #if (DEBUGXEMUL_ENTRY) || (DEBUGXEMUL_WARNING)
  82.   printf("WARNING: getuid\n");
  83. #endif
  84.   return(0);
  85. }
  86.